Ampacity calculation for cables